package cn.ycl.auth.biz.usercenter.service;

import cn.ycl.auth.biz.usercenter.entity.RegisterParam;
import cn.ycl.constans.Result;
import cn.ycl.entity.LoginParam;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author YuanChangLiang
 * @Date 2020/11/10 20:56
 */
public interface LoginService {
    /**
     * 登录验证方法
     *
     * @param request    request
     * @param loginParam 登录类
     * @return 登录结果
     */
    Result loginQuery(LoginParam loginParam, HttpServletRequest request);

    /**
     * 注册方法
     *
     * @param registerParam 前端提交表单数据
     * @return 是否成功
     */
    Result register(RegisterParam registerParam);
}
